package io.itit.ecp.admin.provide.action.req;

import io.itit.grass.common.provide.action.validation.IAdd;
import io.itit.grass.common.provide.action.validation.IUpdate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.*;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 *
 * @Author：Roy
 * @Description：项目管理参数
 * @Date：Create by 2023-11-23 11:46:13
 */
@Data
@ToString
@ApiModel("项目管理参数")
public class SceneProjectReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @Null(groups = IAdd.class)
    @NotBlank(groups = IUpdate.class)
    @ApiModelProperty("主键")
    private String id;

    @NotBlank
    @ApiModelProperty("项目名称")
    private String projectName;

    @ApiModelProperty("项目地点")
    private String address;

    @ApiModelProperty("交付时间")
    private String deliverTime;

    @ApiModelProperty("总用地面积(m²)")
    private BigDecimal landArea;

    @ApiModelProperty("总建筑面积(m²)")
    private BigDecimal floorArea;

    @ApiModelProperty("项目负责人")
    private String userId;

    @NotNull
    @ApiModelProperty("项目状态(1:待开发,2:开发中,3:已结束,4:已停止) >> distCode：ecp-admin.sceneProject.status")
    private Integer status;

    @NotBlank
    @ApiModelProperty("机构Id")
    private String deptId;

    @ApiModelProperty("绿地面积")
    private BigDecimal greenArea;

    @ApiModelProperty("项目图片")
    private String proImgs;

    @ApiModelProperty("背景图")
    private String backgroundImg;

    @ApiModelProperty("联系方式")
    private String mobilePhone;

    @ApiModelProperty("项目介绍")
    private String proRemark;

}
